from app.models.base import Base
from sqlalchemy import Column,Integer,String,DECIMAL
from sqlalchemy import MetaData

class ShareLog(Base):
    __tablename__ = 'share_log'
    metadata = MetaData()
    id = Column(Integer, autoincrement=True, primary_key=True)
    from_user = Column(String(50), default='')
    to_user = Column(String(100), default='')
    event = Column(String(100), default='')
    order_number = Column(String(100), default='')
    report_type = Column(String(100), default='')

    def keys(self):
        return ['id', 'from_user', 'to_user', 'event', 'order_number', 'report_type']